<template>
	<view>
		<indexTop></indexTop>
		<h1>考试安排</h1>
		<view class="stu_table">
			<view class="">
				<view class="">
					考试项目
				</view>
				<view class="">
					考试时间
				</view>
			</view>
			<view class="" v-for="(item,index) in kaoList" :key="index">
				<view class="">
					{{item.kaoName}}
				</view>
				<view class="">
					{{item.kaoDate}}
				</view>
			</view>
		
		</view>
	</view>
</template>

<script>
	import indexTop from "./indexTop"
	export default {
		components:{
			indexTop
		},
		data() {
			return {
				kaoList:""
			}
		},
		methods: {
			
		},
		onLoad() {
			let that = this;
			uni.request({
				url:"http://localhost:8080/user/getKao",
				success(res) {
					console.log(res.data[0].kaoDate)
					that.kaoList = res.data
				}
			})
		}
	}
</script>

<style>
page{
	text-align: center;
}
table{
	width: 100%;
}
.stu_table>view{
	display: flex;
	
	text-align: center;
}
.stu_table>view>view{
	width: 50%;
}
.stu_table>view:nth-child(1) {
	font-weight: bold;
}
</style>
